import request from '@/utils/request'

// 查询检疫纪录列表
export function listQuaRecord(query) {
  return request({
    url: '/animalManagement/quaRecord/list',
    method: 'get',
    params: query
  })
}

// 查询检疫纪录详细
export function getQuaRecord(quaRecordId) {
  return request({
    url: '/animalManagement/quaRecord/' + quaRecordId,
    method: 'get'
  })
}

// 新增检疫纪录
export function addQuaRecord(data) {
  return request({
    url: '/animalManagement/quaRecord',
    method: 'post',
    data: data
  })
}

// 修改检疫纪录
export function updateQuaRecord(data) {
  return request({
    url: '/animalManagement/quaRecord',
    method: 'put',
    data: data
  })
}

// 删除检疫纪录
export function delQuaRecord(quaRecordId) {
  return request({
    url: '/animalManagement/quaRecord/' + quaRecordId,
    method: 'delete'
  })
}
